package com.shushan.ui;

import android.content.Context;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;

import com.shushan.util.DensityUtil;
import com.shushan.util.ToolUtils;

public class OffsetRecyclerDivider extends RecyclerView.ItemDecoration {

    private static final String TAG = OffsetRecyclerDivider.class.getSimpleName();

    private int bottom;

    public OffsetRecyclerDivider() {
    }

    public OffsetRecyclerDivider(int bottom) {
        this.bottom = bottom;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        outRect.set(0, 0, 0, bottom);
    }

}